import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'reset-css'
import './styles/index.scss'
import * as utils from './utils'
import './base'
import './assets/icon/iconfont'
import './assets/icon/iconfont.css'
import store from './store'
// 插件
// import './plugin'

import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)

Vue.config.productionTip = false

Vue.use(ElementUI, { size: 'small' })

Vue.prototype.$utils = utils

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate () {
    // 安装全局事件总线
    Vue.prototype.$bus = this
  }
}).$mount('#app')
